/**
 * Created by xiangyufang on 2016/11/21.
 */
var runTemplate = {

    // 阴保电源
    power: [
        {name: 'customNumber', title: '设备编号：'},
        {name: 'outputVoltage', title: '输出电压(V)：'},
        {name: 'outputCurrent', title: '输出电流(A)：'},
        {name: 'settingPotential', title: '控制电位(mV)：'},
        {name: 'metricalPotential', title: '通电电位(mV)：'},
        {name: 'activeStated', title: '运行状态：'},
        {name: 'downBeginDate', title: '停机开始时间：',render:function(d){
            return Dyy.getDate(d);
        }},
        {name: 'downEndDate', title: '停机结束时间：',render:function(d){
            return Dyy.getDate(d);
        }},
        {name: 'downReason', title: '停机原因：'},
        {name: 'instrumentCalibration', title: '仪表校准：'},
        {name: 'annualRepairRecord', title: '年检修记录：'},
        {name: 'exceptionRecord', title: '异常记录：'},
        {name: 'treatRecord', title: '处理措施：'},
        {name: 'grounding', title: '接地和避雷器设施检查维护：'},
        {name: 'connectionCheck', title: '电缆及连接端子检测维护：'},

        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：',render:function(d){
            return Dyy.getDate(d);
        }},
        {name: 'remarks', title: '备注：'}
    ],

    //长效参比
    long: [
        {name: 'customNumber', title: '设备编号：'},
        {name: 'testCustomNumber', title: '测试桩编号：'},
        {name: 'maintenanceRecord', title: '维护记录：'},
        {name: 'exceptionRecord', title: '异常记录：'},
        {name: 'treatRecord', title: '处理措施：'},
        {name: 'measuredReferencePotential', title: '实测参比测量电位(mV)：'},
        {name: 'standardReferencePotential', title: '标准参比测量电位(mV)：'},
        {name: 'measuredOpenPotential', title: '实测开路电位&nbsp;相对SCE：'},
        {name: 'standardOpenPotential', title: '标准开路电位&nbsp;相对SCE：'},

        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：',render:function(d){
            return Dyy.getDate(d);
        }},
        {name: 'remarks', title: '备注：'}
    ],

    // 阳极地床
    bed: [
        {name: 'customNumber', title: '设备编号：'},
        {name: 'testCustomNumber', title: '测试桩编号：'},
        {name: 'groundingResistance', title: '辅助阳极地床接地电阻(Ω)：'},
        {name: 'maintenanceRecord', title: '维护记录：'},
        {name: 'exceptionRecord', title: '异常记录：'},
        {name: 'treatRecord', title: '处理措施：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：',render:function(d){
            return Dyy.getDate(d);
        }},
        {name: 'remarks', title: '备注：'}
    ],

    //绝缘装置
    insu: [
        {name: 'customNumber', title: '设备编号：'},
        {name: 'testCustomNumber', title: '测试桩编号：'},
        {name: 'exceptionRecord', title: '异常记录：'},
        {name: 'treatRecord', title: '处理措施：'},
        {name: 'nonProtectivePotential', title: '电位法测试站内侧管/地电位(mV)：'},
        {name: 'protectivePotential', title: '电位法测试站外侧管/地电位(mV)：'},
        {name: 'externalCurrent', title: 'PCM漏电率测试站内侧管内电流(A)：'},
        {name: 'innerCurrent', title: 'PCM漏电率测试站外侧管内电流(A)：'},

        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：',render:function(d){
            return Dyy.getDate(d);
        }},
        {name: 'remarks', title: '备注：'}
    ],

    // 防浪涌保护器
    avoid: [
        {name: 'customNumber', title: '设备编号：'},
        {name: 'testCustomNumber', title: '测试桩编号：'},
        {name: 'nonProtectivePotential', title: '站内侧管/地电位(mV)：'},
        {name: 'protectivePotential', title: '站外侧管/地电位(mV)：'},
        {name: 'appearanceCheck', title: '外观检查：'},
        {name: 'exceptionRecord', title: '异常记录：'},
        {name: 'treatRecord', title: '处理措施：'},

        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：',render:function(d){
            return Dyy.getDate(d);
        }},
        {name: 'remarks', title: '备注：'}
    ],

    // 跨接线
    line: [
        {name: 'customNumber', title: '设备编号：'},
        {name: 'testCustomNumber', title: '测试桩编号：'},
        {name: 'crosswireConnecttion', title: '跨接线连通时电位(mV)：'},
        {name: 'crosswireDisConnection1', title: '跨接线断开测试1断开后电位(mV)：'},
        {name: 'connectingPipeName1', title: '跨接线断开测试1连接管道名称：'},
        {name: 'crosswireDisConnection2', title: '跨接线断开测试2断开后电位(mV)：'},
        {name: 'connectingPipeName2', title: '跨接线断开测试2连接管道名称：'},
        {name: 'crosswireDisConnection3', title: '跨接线断开测试3断开后电位(mV)：'},
        {name: 'connectingPipeName3', title: '跨接线断开测试3连接管道名称：'},
        {name: 'solderJointInspection', title: '跨接线焊点检查：'},
        {name: 'exceptionRecord',title: '异常记录：'},
        {name: 'treatRecord', title: '处理措施：'},

        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：',render:function(d){
            return Dyy.getDate(d);
        }},
        {name: 'remarks', title: '备注：'}
    ],

    //阴保测试桩
    pile: [
        {name: 'customNumber', title: '测试桩编号：'},
        {name: 'acInterferenceVoltage', title: '交流电压(V)：'},
        {name: 'testStationFineStatus', title: '测试桩完好情况：'},
        {name: 'pileMaintenance', title: '测试桩维护：'},
        {name: 'exceptionRecord', title: '异常记录：'},
        {name: 'treatRecord', title: '处理措施：'},
        {name: 'freeCorrosionPotential', title: '自然电位(mV)：'},
        {name: 'onPotential', title: '通电电位(mV)：'},
        {name: 'offPotential', title: '断电/极化电位(mV)：'},

        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：',render:function(d){return Dyy.getDate(d);}},
        {name: 'remarks', title: '备注：'}
    ],

    // 牺牲阳极
    sacri: [
        {name: 'customNumber', title: '设备编号：'},
        {name: 'testCustomNumber', title: '测试桩编号：'},
        {name: 'onPotential', title: '通电电位(mV)：'},

        {name: 'sacalAnodeOpenPotential', title: '牺牲阳极开路电位(mV)：'},
        {name: 'currentOut', title: '阳极输出电流(A)：'},
        {name: 'groundingResistance', title: '接地电阻(Ω)：'},

        {name: 'soilResistivity', title: '土壤电阻率(MΩ)：'},
        {name: 'sacrificialAnodeMaintenance', title: '牺牲阳极维护：'},
        {name: 'exceptionRecord', title: '异常记录：'},

        {name: 'treatRecord', title: '处理措施：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：',render:function(d){return Dyy.getDate(d);}},
        {name: 'remarks', title: '备注：'}
    ],

    // 排流装置openCircuitPotential
    elec: [
        {name: 'customNumber', title: '设备编号：'},
        {name: 'testCustomNumber', title: '测试桩编号：'},
        {name: 'interferenceType', title: '干扰类型：'},

        {name: 'pipeToSoilPotential', title: '管/地电位(mV)：'},
        {name: 'acInterferenceVoltage', title: '交流电压(V)：'},
        {name: 'drainageMax', title: '最大排流电流(mA)：'},

        {name: 'drainageMin', title: '最小排流电流(mA)：'},
        {name: 'drainageAvg', title: '平均排流电流(mA)：'},
        {name: 'openCircuitPotential', title: '排流地床开路电位(mV)：'},

        {name: 'groundingResistance', title: '接地电阻(Ω)：'},
        {name: 'exceptionRecord', title: '异常记录：'},
        {name: 'treatRecord', title: '处理措施：'},
        {name: 'recorder', title: '记录人：'},
        {name: 'recordTime', title: '记录时间：',render:function(d){return Dyy.getDate(d);}},
        {name: 'remarks', title: '备注：'}
    ]
};